<#cenluan title="${'照片-'+gallery.title}">
    <style>
        .img-thum {
            height: 135px;
            margin-bottom: 10px;
        }

        .img-thum img {
            width: 100%;
            max-height: 100%;
        }
    </style>
    <ol class="breadcrumb">
        <li><a href="/gallery">相册</a></li>
        <li>${gallery.html}</li>
        <li>照片</li>
    </ol>
    <div class="btn-group mb20">
        <a class="btn btn-default <!--@if(isEmpty(order)||'0'==order){print('active');}-->"
           href="/photo/${gallery.id}?order=0">
            <span class="glyphicon glyphicon-time"></span>&nbsp;最新上传
        </a>
        <a class="btn btn-default  <!--@if('1'==order!){print('active');}-->"
           href="/photo/${gallery.id}?order=1">
            <span class="glyphicon glyphicon-eye-open"></span>&nbsp;浏览最多
        </a>
        <a class="btn btn-default  <!--@if('2'==order!){print('active');}-->"
           href="/photo/${gallery.id}?order=2">
            <span class="glyphicon glyphicon-heart"></span>&nbsp;收藏最多
        </a>
    </div>
    <div class="row">
        <!--@for(photo in page.list){-->
        <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 img-thum">
            <a href="/photo/show/${photo.id}?order=${order!'0'}">
                <img src="${photo.url}@!photo-sm" class="img-rounded">
            </a>
        </div>
        <!--@}elsefor{-->
        <div class="col-md-12">无可显示的照片</div>
        <!--@}-->
    </div>
    ${pageLink}
</#cenluan>